package com.richrail.model;

public class PrefixedNameGenerator implements NameGenerator
{
	private String prefix;
	
	private int counter = 1;
	
	public PrefixedNameGenerator(String prefix)
	{
		this.prefix = prefix;
	}
	
	@Override
	public String generateName()
	{
		return prefix + counter++;
	}
}
